import os
import time
import platform,ctypes

p = os.environ['path']
os.environ['path']= os.path.abspath(".")+";"+p

(sysbit,_) = platform.architecture()
if '64' in sysbit:
    dll_name = './dd/64/dd74000x64.64.dll'
else:
    dll_name = './dd/64/dd74000x64.32.dll'



# dd = ctypes.WinDLL(os.path.abspath(dll_name))

import win32com.client
os.system("regsvr32 TSPlug.dll ")

dm = win32com.client.Dispatch('dm.dmsoft')
dd = win32com.client.Dispatch("ts.tssoft")